
function $PostBackName$dateSelected(calendar) {
    if (calendar.dateClicked) {
       var inputField = document.getElementById("$PostBackName$Fld");
       if($BaseName$Origional != inputField.value && $BaseName$AutoPost == true)
          __doPostBack("$PostBackName$", inputField.value + "#" + calendar.firstDayOfWeek + "#" + calendar.element.style.left + "#" + calendar.element.style.top );
    }
 }

function $PostBackName$calLostFocus()
{
    //alert(typeof(Page_IsValid));
    var inputField = document.getElementById("$PostBackName$Fld");
    var isValid = true;
    if(typeof(Page_IsValid) == 'boolean')
        isValid = Page_IsValid;
    if($BaseName$Origional != inputField.value && isValid && $BaseName$AutoPost == true)
        __doPostBack("$PostBackName$", inputField.value);
}